<!DOCTYPE HTML>
<html>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>${site.name} - Powered by JEECMS</title>
<meta http-equiv="keywords" content="${vote.title?html}"/>
<meta http-equiv="description" content="${vote.title?html}"/>

<!--[if lt IE 9]>
<script src="${resSys}/html5.js" type="text/javascript"></script>
<![endif]-->
<link href="/${res}/css/html5.css" rel="stylesheet" type="text/css"/>

<link href="${resSys}/front.css" rel="stylesheet" type="text/css"/>
<script src="${resSys}/jquery.js" type="text/javascript"></script>
<script src="${resSys}/front.js" type="text/javascript"></script>
<script src="/${res}/js/common.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
	Cms.siteFlow("${base}", location.href, document.referrer);
});
</script>
</head>

<body>
<div class="container">
	[#include "../include/页头顶栏.html"/]
    [#include "../include/标志和搜索.html"/]
    [#include "../include/页头导航栏.html"/]

    <div class="w700 mt10">
    	<div class="rim05">
    		<div class="LanMu01-2">
                <div class="LanMu01-1"></div>
                <span>${vote.title?html}</span>
                <div class="LanMu01-3"></div>
            </div>
            <div class="survey">
            <form action="${base}/vote.jspx" method="post">
            <input type="hidden" name="voteId" value="${vote.id}"/>
            <table>
            [#list vote.subtopics as subTopic]
            <tr>
            <td height="30" colspan="2" align="left">${subTopic_index+1}、${subTopic.title?html}</td>
            </tr>
            [#if subTopic.isRadio]
            <tr>
            <td height="30" colspan="2" align="left">
            [#list subTopic.voteItems as item]
            <input type="radio" name="itemIds${subTopic.id}" value="${item.id}"/>${item.title?html}
            [/#list]
            </td>
            </tr>
            [/#if]
            [#if subTopic.isMulti]
            <tr>
            <td height="30" colspan="2" align="left">
            [#list subTopic.voteItems as item]
            <input type="checkbox" name="itemIds${subTopic.id}" value="${item.id}"  id="${item.id}"/>${item.title?html}
            [/#list]
            </td>
            </tr>
            [/#if]
            [#if subTopic.isText]
            <tr>
            <td height="30" colspan="2" align="left">
            <input name="reply" type="text"/>
            </td>
            </tr>
            [/#if]
            <input name=subIds type="hidden" value="${subTopic.id}"/>
            [/#list]
            </table>
            <input type="submit" value="提交"/>&nbsp; 
            <a href="${base}/vote_result.jspx?voteId=${vote.id}" target="_blank">查看投票结果</a>
            </form><br>
            </div>
    	</div>
    </div>
  
	<div class="w270">
    	<div class="rim05 mt10">
            <div class="LanMu01-2">
                <div class="LanMu01-1"></div>
                <span>进行中调查</span>
                <div class="LanMu01-3"></div>
            </div>
            <div class="surveylist">
            	<ul>
                    <li>
                    [@cms_vote]
                    ${tag_bean.title?html}
                    [/@cms_vote]
                    </li>
                </ul>
            </div>
    	</div>   
        <div class="clear-10"></div> 
        <div class="rim05">
            <div class="LanMu01-2">
            <div class="LanMu01-1"></div>
            <span>往期调查</span>
            <div class="LanMu01-3"></div>
            </div>
            <div class="surveylist">
            	<ul>
                [@cms_vote_list  siteId=site.id]
                [#list tag_list as vote]
                <li><a href="${base}/vote.jspx?voteId=${vote.id}">${vote.title?html}</a>&nbsp;[#if vote.endTime??]${vote.endTime?string("yyyy-MM-dd")}[/#if]</li>
                [/#list]
                [/@cms_vote_list]
                </ul>
            </div>
        </div>
    </div>
	[#include "../include/页脚友情链接栏.html"/]
    [#include "../include/页脚信息栏.html"/]
</div>
</body>
</html>